/* 通用布局 */
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  background: #f6f7fb;
  margin: 0;
  padding: 0;
  color: #222;
}

h1, h2, h3, h4 {
  color: #333;
  margin-bottom: 0.5em;
}

button {
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  margin: 8px 0;
  transition: background 0.2s;
}
button:hover {
  background: #2563eb;
}

input, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin: 8px 0 16px 0;
  font-size: 1em;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
}

/* 容器样式 */
#root > div {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
  padding: 32px 28px 40px 28px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: #f3f6fa;
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 6px;
  transition: box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
}
li:hover {
  background: #e8f0fe;
  box-shadow: 0 2px 8px 0 rgba(79,140,255,0.08);
}

/* 评论区样式 */
textarea {
  min-height: 60px;
}

/* 头像样式（如有） */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 1.5px solid #e0e7ef;
}

/* 回复/评论列表 */
.comment-list {
  margin-top: 18px;
  padding-left: 0;
}
.comment-list > div {
  background: #f8fafc;
  border-radius: 5px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 0.98em;
}

/* 标题栏 */
header, .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  #root > div {
    max-width: 98vw;
    padding: 10px 2vw 20px 2vw;
  }
}
